package cs.upt.awp.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cs.upt.awp.dao.CityDAO;
import cs.upt.awp.data.City;

public class CityServices
{
	@Autowired
	CityDAO cityDao;
	
	public City getEntityById(long id) throws Exception {
		return cityDao.getEntityById(id);
	}

	
	public List<City> getEntityList() throws Exception {
		return cityDao.getEntityList();
	}
	
	public List<City> getCitiesOfCoury(String countryCode) throws Exception {
		return cityDao.getCitiesOfCountry(countryCode);
	}
}
